﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FazaDemo.ViewModels;

namespace FazaDemo.WebSiteMvc.Controllers
{
    public class AutorizationController : Controller
    {

        // GET: Autorization
        public ActionResult Login()
        {
            return View(new LoginViewModel());
        }

        [HttpPost]
        public ActionResult Login(LoginViewModel loginViewModel)
        { 
            return RedirectToAction("Root", "Start");
        }

    }
}